package com.im.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户实体类")
public class ImUser {
    @NotBlank(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id")
    private String user_id;

    @NotBlank(message = "用户密码不能为空")
    @ApiModelProperty(value = "用户密码")
    private String user_pass;

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String user_name;

    @ApiModelProperty(value = "用户头像")
    private String user_img;
}
